package com.yf.broadcast;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;

public class ScreenLightReceiver extends BroadcastReceiver {

	@Override
	public void onReceive(Context context, Intent intent) {
		String action = intent.getAction();
		
		if ("android.intent.action.SCREEN_OFF".equals(action)) {
			Log.v("ScreenLightReceiver", "android.intent.action.SCREEN_OFF");
		} else if ("android.intent.action.SCREEN_ON".equals(action)) {
			Log.v("ScreenLightReceiver", "android.intent.action.SCREEN_ON");
		}
	}

}
